<template>
<section>
  <el-menu default-active="2" class="mt20" background-color="#137752" text-color="#fff" active-text-color="#ffd04b">
    <el-menu-item index="2">
      <i class="material-icons mr2">visibility</i>
      <span slot="title">关注</span>
    </el-menu-item>
    <el-menu-item index="3">
      <i class="material-icons mr2">face</i>
      <span slot="title">粉丝</span>
    </el-menu-item>
    <el-menu-item index="4">
      <i class="material-icons mr2">textsms</i>
      <span slot="title">消息</span>
    </el-menu-item>
  </el-menu>
  <div class="ad2 relative" v-if="show">
    <img :src="tws" />
    <i @click="handleShow" class="el-icon-error absolute iconbtn light-gray Dim shadow-1 pointer"></i>
  </div>
</section>
</template>

<script>
import tws from './img/lanyuesu.jpg';

export default {
  name: 'SquareRight',
  data() {
    return {
      show: true,
      tws,
    };
  },
  methods: {
    handleShow() {
      this.show = false;
    },
  },
};
</script>

<style scoped>
.ad2 {
  width: 207px;
  margin: 5px auto;
  top: 5px;
  right: 0;
}

.ad2 img {
  width: 100%;
}

.ad2 .iconbtn {
  top: 2px;
  right: 2px;
}

.mt20 {
  margin-top: 20px;
}
</style>
